package com.xhwl.centiotdata.handler.eesd.impl;

import com.xhwl.centiotdata.handler.eesd.EesdFactory;
import com.xhwl.centiotdata.handler.eesd.EesdHandler;
import com.xhwl.centiotdata.pojo.dto.eesd.EesdConfigDTO;
import com.xhwl.centiotdata.pojo.enums.eesd.EesdMethodEnum;
import com.xhwl.centiotdata.suppliersystem.eesd.ntelroom.NtElRoomApiHandler;
import com.xhwl.centiotdata.suppliersystem.eesd.ntescar.NtEsCarApiHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EesdNtElRoomHandler extends EesdHandler {
    @Autowired
    private NtElRoomApiHandler ntElRoomApiHandler;

    @Override
    public void afterPropertiesSet() throws Exception {
        EesdFactory.register(EesdMethodEnum.NT_ELROOM.getId(), this);
    }

    @Override
    public void pullEnvData(EesdConfigDTO eesdConfigDTO) {
        ntElRoomApiHandler.pullEnvData(eesdConfigDTO);
    }

    @Override
    public void pullRecord(EesdConfigDTO eesdConfigDTO) {
        ntElRoomApiHandler.pullRecord(eesdConfigDTO);
    }

}
